.content-toolsbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;

  .toolsbar-left {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    .toolsbar-items {
      font-size: 14px;
      font-weight: 400;
      line-height: 15px;
      color: #080255;
    }

    .toolsbar-sort-button {
      display: inline-flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 14px;
      font-weight: 500;
      line-height: 28px;
      padding: 6px 12px;
      border-radius: 7px;
      border: none;
      background-color: #ffffff;
      color: #080255;
      text-transform: none;
      box-shadow: none;

      b {
        font-size: 18px;
      }

      span {
        margin-left: 4px;
      }
    }

    .toolsbar-filter-button {
      display: none;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 14px;
      font-weight: 500;
      line-height: 28px;
      padding: 6px 12px;
      border-radius: 7px;
      border: none;
      background-color: #ffffff;
      color: #080255;
      text-transform: none;
      box-shadow: none;

      b {
        font-size: 18px;
      }

      span {
        margin-left: 4px;
      }
    }
  }

  .toolsbar-right {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    .toolsbar-button {
      font-size: 14px;
      font-weight: 500;
      line-height: 28px;
      padding: 6px 12px;
      height: 40px;
      background-color: #ffffff;
      color: #9c9abb;
      border: 1px solid #9c9abb;
      border-radius: 7px;
      white-space: nowrap;
      box-sizing: border-box;
      pointer-events: none;
      &.toolsbar-button-activated {
        color: #080255;
        border: 1px solid #080255;
        pointer-events: all;
      }

      &.button-dark {
        border-radius: 60px;
        color: #ffffff;
        background-color: #9c9abb;
        border: none;
        .iconfont {
          color: #ffffff;
          font-size: 12px;
          margin-left: 8px;
        }
        &.toolsbar-button-activated {
          background-color: #080255;
        }
      }
    }
  }
}

.toolsbar-sort-list {
  .MuiMenu-paper {
    border-radius: 7px;
    padding: 5px 10px;
    .MuiMenu-list {
      .MuiMenuItem-root {
        padding: 5px 8px;
        font-size: 14px;
        line-height: 18px;
        font-weight: 400;
        min-width: 160px;
        border-radius: 3px;
        .iconfont {
          font-size: 14px;
          line-height: 18px;
          padding-right: 8px;
        }
        // &:hover {
        //   background-color: #e6e6ee;
        // }
        &.dir-selected {
          background-color: #e6e6ee;
        }
        .MuiFormControlLabel-root {
          width: 100%;
          margin: 0;
          .MuiRadio-root {
            padding: 0 8px 0 0;
            margin-left: -2px;
            .MuiSvgIcon-root {
              width: 15px;
              height: 15px;
              color: #080255;
            }
          }
          .MuiFormControlLabel-label {
            font-size: 14px;
            line-height: 18px;
            font-weight: 400;
          }
        }
      }
    }
  }
}
// ================================================================================
// breakpoints: 1024 768 640 480 375 320
// ================================================================================
@media (max-width: 1023px) {
  .content-toolsbar {
    position: sticky;
    top: -1px;
    background: #f9f6f3;
    z-index: 10;
    padding: 10px 0;
    flex-direction: row;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
    .toolsbar-left {
      gap: 10px;
      .toolsbar-items {
        font-size: 12px;
      }
      .toolsbar-sort-button {
        padding: 4px 12px;
      }
      .toolsbar-filter-button {
        padding: 4px 12px;
        display: inline-flex;
      }
    }
    .toolsbar-right {
      gap: 10px;
      .toolsbar-button {
        font-size: 12px;
        padding: 4px 12px;
        height: 36px;
      }
    }
  }
}
@media (max-width: 640px) {
  .content-toolsbar {
    padding: 3vw 0 10px 0;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: stretch;
    .toolsbar-left {
      flex: 1;
    }
    .toolsbar-right {
      flex: 1;
    }
  }
}
